package com.ysjweb.dish.pojo;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class WeatherForcast implements WeatherFather{
    private Integer tempMax;
    private Integer tempMin;
    private String textDay;

    @Override
    public Integer getTemperature() {

        return (tempMax+tempMin)/2;
    }

    @Override
    public String getText() {
        return textDay;
    }
}
